package global

import (
	"os"

	"github.com/redis/go-redis/v9"
	"gorm.io/gorm"
)

var (
	Db      *gorm.DB
	JwtKey  []byte
	RedisDB *redis.Client
)

func init() {
	jwtSecret := os.Getenv("JWT_SECRET")
	if jwtSecret == "" {
		jwtSecret = "your-secret-key"
	}
	JwtKey = []byte(jwtSecret)
}
